import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'index',
            component: (resolve) => require(['@/pages/index/index/main.vue'], resolve),
            meta: {title: '首页'},
        },
        {
            path:'/pages/dev/setcookie',
            name: 'dev_setcookie',
            component: (resolve) => require(['@/pages/dev/setcookie.vue'], resolve),
            meta: {title: '设置COOKIE'},
        },
        {
            path:'/pages/dev/getcookie',
            name: 'dev_getcookie',
            component: (resolve) => require(['@/pages/dev/getcookie.vue'], resolve),
            meta: {title: '获取COOKIE'},
        }
    ]
})
